package com.youth.hrsync.config;

import com.youth.hrsync.bean.kunshan.KunShanUserinfo;
import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class KSUserRowMapper implements RowMapper<KunShanUserinfo> {
    @Override
    public KunShanUserinfo mapRow(ResultSet rs, int rowNum) throws SQLException {
        KunShanUserinfo userInfo = new KunShanUserinfo();
        userInfo.setUserid(rs.getInt("userid"));
        userInfo.setSsn(rs.getString("ssn"));
        userInfo.setName(rs.getString("name"));
        userInfo.setCardNo(rs.getString("CardNo"));
        return userInfo;
    }
}
